<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@page import="locations.model.*"  %>
<div>
	<div>
		<ul class="list-actions">
			<li class="list-action-new">
				<s:url id="url" action="newInstitutionResponsible"></s:url> 
				<s:a href="%{url}"><s:property value="getText('global.nuevo')" /></s:a>
			</li>
		</ul>
	</div>
	
	<table class="admin-table">	
		<tr>
			<th><s:property value="getText('global.nombre')" /></th>
			<th><s:property value="getText('global.apellido')" /></th>
			<th><s:property value="getText('global.mail')" /></th>
			<th><s:property value="getText('global.telefono')" /></th>
			<th><s:property value="getText('global.profesion')" /></th>
			<th><s:property value="getText('global.acciones')" /></th>
		</tr>
		<s:iterator value="institutionResponsibles" status="row">
			<s:if test="#row.odd == true"> 
			<tr class="odd"> </s:if>
    		<s:else> 
    		<tr class="even"> </s:else>
				<td> <s:property value="nombre"/> </td>
				<td> <s:property value="apellido"/> </td>
				<td> <s:property value="email"/> </td>
				<td> <s:property value="phoneNumbers"/> </td>
				<td> <s:property value="profesion"/> </td>
				<td class="list-actions-td">
					<ul class="object-actions">
						<li class="object-action-view">
							<s:url id="url" action="editInstitutionResponsible" >
								<s:param name="id" value="id"></s:param>
							</s:url>
							<s:a href="%{url}"><s:property value="getText('accion.ver')" /></s:a>
						</li>
						<li  class="object-action-edit">
							<s:url id="url" action="editInstitutionResponsible" >
								<s:param name="id" value="id"></s:param>
        					</s:url>
							<s:a href="%{url}"><s:property value="getText('accion.modificar')" /></s:a>
						</li>
						<li class="object-action-delete" >
							<s:url id="url" action="deleteInstitutionResponsible" >
								<s:param name="id" value="id"></s:param>
							</s:url>
							<s:a href="%{url}" onclick="return confirm('Desea...?')"><s:property value="getText('accion.eliminar')" /></s:a>
						</li>
					</ul>
				</td>
		</s:iterator>
	</table>
</div>